package validators

import (
	"github.com/go-playground/validator/v10"
	"regexp"
)

func TelValidator(fl validator.FieldLevel) bool {
	re := regexp.MustCompile("^1[3-9][0-9]{9}$")
	return re.MatchString(fl.Field().String())
}
